(function(jQuery) {
  return jQuery.widget("capstoned.drawer", {
    link: null,
    options: {
      editable: null,
      toolbar: null
    },
    _create: function() {
      this.link = jQuery("<button>Link</button>").button();
	  makeLink = rangy.createCssClassApplier('drawerClass', {
		elementTagName: "span"
	  });
      this.link.click(function() {
		makeLink.toggleSelection();
	});
      return this.options.toolbar.append(this.link);
    },
    _init: function() {}
  });
})(jQuery);